<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich">
    
        <rich:panel>
        	
        	<br/>
        	<rich:dataTable var="_chuvas" value="#{chuvaAction.listachuvas.toArray()}" id="listaChuvas">
				
				<rich:column>
					<f:facet name="header">
		                <ui:include src="/layout/sort.xhtml">
		                        <ui:param name="propertyLabel" value="Mês/Ano"/>
	                    </ui:include>
	                </f:facet>
					<h:outputText value="#{_chuvas.dataChuva}">
						<f:convertDateTime type="date" dateStyle="short" pattern="MM/yyyy"/>
					</h:outputText>
				</rich:column>

				<rich:column>
					<f:facet name="header">
		                <ui:include src="/layout/sort.xhtml">
		                        <ui:param name="propertyLabel" value="Máxima"/>
	                    </ui:include>
	                </f:facet>
					<h:outputText id="txtMaxima" value="#{_chuvas.maxima}">
						<f:convertNumber maxFractionDigits="2" /> 
					</h:outputText>
				</rich:column>
				
				<rich:column>
					<f:facet name="header">
		                <ui:include src="/layout/sort.xhtml">
		                        <ui:param name="propertyLabel" value="Probabilidade"/>
	                    </ui:include>
	                </f:facet>
					<h:outputText value="#{_chuvas.probabilidade}">
						<f:convertNumber maxFractionDigits="5"/> 
					</h:outputText>
				</rich:column>
				
				<rich:column>
					<f:facet name="header">
		                <ui:include src="/layout/sort.xhtml">
		                        <ui:param name="propertyLabel" value="Tempo de Recorrência"/>
	                    </ui:include>
	                </f:facet>
					<h:outputText value="#{_chuvas.tempoRecorrencia}">
						<f:convertNumber maxFractionDigits="3"/> 
					</h:outputText>
				</rich:column>
				
			</rich:dataTable>
		</rich:panel>    
</ui:composition>    